<nz-page-header nzTitle="网络支付列表">
    <nz-breadcrumb nz-page-header-breadcrumb>
        <nz-breadcrumb-item>
            <a [routerLink]="['/']">首页</a>
        </nz-breadcrumb-item>
        <nz-breadcrumb-item>
            <a [routerLink]="['/mall']">{{'mall' |translate}}</a>
        </nz-breadcrumb-item>
    </nz-breadcrumb>
</nz-page-header>

<nz-card [nzExtra]="extraAction">
    <ng-template #extraAction>
        <button nz-button nzSize="large" (click)="refresh()">{{'refresh' | translate}}</button>
    </ng-template>
    <nz-table #dataTable nzShowSizeChanger nzShowPagination [nzFrontPagination]="false" [nzData]="dataItems" [nzTotal]="pageingInfo.totalItems"
        [(nzPageSize)]="pageingInfo.pageSize" [(nzPageIndex)]="pageingInfo.pageNumber" [nzLoading]="pageingInfo.isTableLoading" (nzPageIndexChange)="refresh()"
        (nzPageSizeChange)="refresh()">
        <thead>
            <tr>
                <!-- <th>id</th> -->
                <th>body</th>
                <th>billNo</th>
                <th>totalPrice</th>
                <th>appName</th>
                <th>state</th>
                <th>creationTime</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            <tr *ngFor="let item of dataTable.data">
                <!-- <td>{{item.id}}</td> -->
                <td>{{item.body}}</td>
                <td>{{item.billNo}}</td>
                <td>{{item.totalPrice / 100.| currency}}</td>
                <td>{{item.appName}}</td>
                <td>{{item.state}}</td>
                <td>{{item.creationTime | momentFromNow}}</td>
                <td>
                    <button nz-button nzType="primary" nzSize="small" (click)="view(item)">{{'view' | translate}}</button>
                </td>
            </tr>
        </tbody>
    </nz-table>
</nz-card>